
import { WeElement, define } from 'omi'

import './index.css'

define('page-points', class extends WeElement {
  config = {
    navigationBarTitleText: '积分明细'
  }

  data = {
    logo:""
  }

  install() {
    this.data.logo = require('../../../images/logo.png'),
    
    this.update()
  }
  no_use=()=>{
    wx.navigateTo({
      url: '../coupon/index',
    })
  }
  render() {
    return (
      <view class="container">
        <view class="top">
          <view class="can_use">
            <view>可用积分</view>
            <view class="score">0</view>
          </view>
          <view class="get">
            <view>积累积分</view>
            <view class="score">0</view>
          </view>
        </view>
        <view class="mid">
          <view bindtap={this.no_use} class="mid_card">未使用</view>
          <view class="mid_card">已使用</view>
          <view class="mid_card">已失效</view>
        </view>
        <image class="logo" src={logo}></image>
      </view>
      
    )
  }
})